/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package graficos;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartFrame;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.CategoryDataset;

/**
 *
 * @author Ariel
 */
public class Gráfico {

private JFreeChart chart;

public Gráfico(String nome){

CategoryDataset dataset = DataSet.createDataSet();

chart = ChartFactory.createLineChart(
        nome,
        "Fator de Carga (tamanho da tabela = 1009)",
        "Média de Acessos",
        dataset,
        PlotOrientation.VERTICAL,
        true, // include legend
        true, // tooltips
        false // urls
        );

}

public void display(){

    ChartFrame frame = new ChartFrame("Gráfico linha", chart);
    frame.pack();
    frame.setVisible(true);

}


}